package com.ansatsing.factory.method;

public class App {

	public static void main(String[] args) {
		// 制造精灵斧头武器
		Weapon weapon1 = new ElfBlacksmith().manufactureWeapon(WeaponType.AXE);
		System.out.println(weapon1);
		
		// 制造兽人短剑武器
		Weapon weapon2 = new OrcBlacksmith().manufactureWeapon(WeaponType.SHORT_SWORD);
		System.out.println(weapon2);
		
		
		// 制造精灵长枪武器
		FactoryMethod.manufactureWeapon(new ElfBlacksmith(), WeaponType.SPEAR);
		
		//制造兽人斧头武器
		FactoryMethod.manufactureWeapon(new OrcBlacksmith(), WeaponType.AXE);
	}

}
